class Patient < ActiveRecord::Base
	has_many :appointments
	has_and_belongs_to_many :contacts
	def full_name
    	"#{first_name} #{last_name}"
	end
	
  validates :first_name, :last_name, :dob, :mobile, :email, presence: true
	validates :email, uniqueness: true
end
